var currentExecutablePath = Process.GetCurrentProcess().MainModule.FileName; Process.Start(currentExecutablePath); Application.Current.Shutdown();
Application.Current.Shutdown(); System.Windows.Forms.Application.Restart();